package core.gamestates;

import gui.Menu;

import java.awt.Point;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

import core.GameFlow;
import core.GameState;

public class MenuState extends GameState {

	Menu menu;
	double angle;

	public MenuState() {
		super();
		menu = new Menu();
		menu.addButtonListener(GameFlow.getInstance());
		menu.addButton("Start New Game", 500, 200, 200, 30,
				GameFlow.SWITCH_TO_GAME_STATE);

		menu.addButton("Continue Game", 500, 260, 200, 30,
				GameFlow.SWITCH_TO_GAME_STATE);

		menu
				.addButton("Exit game", 500, 320, 200, 30,
						GameFlow.EXIT_APLICATION);

		renderer.addElement(menu);
		angle = 0;
	}

	@Override
	public void reset() {
		// TODO Auto-generated method stub
	}

	@Override
	public void update() {
		// TODO Auto-generated method stub
	}

	@Override
	public boolean onClick(MouseEvent m) {
		// TODO Auto-generated method stub
		return menu.onClick(m);
	}

	@Override
	public void onKeyPresed(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void updateMouse(Point p) {
		// TODO Auto-generated method stub
		menu.updateMouse(p);
	}

}
